<%--
  Created by IntelliJ IDEA.
  demo6.User: 周安妮
  Date: 2025/11/11
  Time: 21:50
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
  <head>
    <title>page作用域测试</title>
  </head>
  <body>
  <%
    // 向page作用域存数据
    pageContext.setAttribute("pageMsg", "我只在当前pageScope.jsp有效");
  %>
  <h3>page作用域的值：${pageScope.pageMsg}</h3>
  <!-- 跳转到其他页面后，page作用域的值会失效 -->
  <a href="requestScope.jsp">跳转到requestScope.jsp</a>
  </body>
</html>
